package org.dl.gjz.menyj.task.service.deletegate;

import org.camunda.bpm.engine.delegate.DelegateExecution;
import org.camunda.bpm.engine.delegate.JavaDelegate;
import org.springframework.stereotype.Service;

@Service("doingRepair")
public class DoingRepair implements JavaDelegate {
    @Override
    public void execute(DelegateExecution execution) throws Exception {
        System.out.println("师傅上门维修");
        String currentActivityName = execution.getCurrentActivityName();
        String processDefinitionId = execution.getProcessDefinitionId();
        System.out.println("当前活动名称：" + currentActivityName + "流程定义ID：" + processDefinitionId);
        execution.setVariable("repairMan", "Gerald");
    }
}
